import {request} from './index'

export default {
    CreateTeam(teamInfo){
        return request({
            url:'/team/create',
            method:'post',
            data:teamInfo
        })
    },
    GetList(current_page){
        return request({
            url:'/team/list',
            method: 'get',
            params:{
                current_page
            }
        })
    },
    // 创建团队 头像上传
    UpLogo(file){
        return request({
            url:'/upload/team_logo',
            method: 'post',
            data:file
        })
    },

    //搜索得到的列表
    SelectList(leader_id){
        return request({
            url:`/team/leader_info?leader_id=${leader_id}`,
            method: 'get',
        })
    }
}
